<template>
  <BasicDrawer v-bind="$attrs" @register="registerDrawer" destroyOnClose title="前端账号管理" width="55%" :showFooter="false">
    <CompanyUserIndex ref="companyUserIndex"></CompanyUserIndex>
  </BasicDrawer>
</template>
<script lang="ts" setup>
import { getCurrentInstance } from 'vue';
import { BasicDrawer, useDrawerInner } from '@apps/antd-admin/src/components/drawer';
import CompanyUserIndex from '../../companyUser/index.vue';

const ctx: any = getCurrentInstance();

const [registerDrawer, { setDrawerProps, closeDrawer }] = useDrawerInner(async data => {
  let record = data.record;
  ctx.refs['companyUserIndex'].setSearchInfoProps(record.companyId);
});
</script>
